package com.msz.controller.rest;

import com.msz.util.R;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.annotation.*;

/**
 * @author hx
 * @since 2021/12/2 10:16 下午
 */

@Controller
@RequestMapping("/test")
public class TestHttpStatusController {

    @RequestMapping(value = "/500",method = RequestMethod.GET)
    @ResponseBody
    public String methodNotAllowed() {
        int i =  10/0;
        return "500";
    }
}
